﻿<!--
  
   UpdaterWindow.xaml
  
   Copyright (c) 2008 Mike Strobel
  
   This source code is subject to the terms of the Microsoft Reciprocal License (Ms-RL).
   For details, see <http://www.opensource.org/licenses/ms-rl.html>.
  
   All other rights reserved.
  
  -->
<scc:Dialog x:Class="Supremacy.Updater.UpdaterDialog"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:s="http://schemas.startreksupremacy.com/xaml/core"
            xmlns:scc="http://schemas.startreksupremacy.com/xaml/presentation"
            Background="Transparent">
  <DockPanel Width="598">
    <TextBlock DockPanel.Dock="Top"
               FontSize="20pt"
               FontFamily="{DynamicResource LCARS_DefaultFont}"
               Foreground="{DynamicResource LCARS_HeaderBrush}"
               Text="INCOMING DATA STREAM"
               TextAlignment="Center" />
    <TextBlock x:Name="StatusText"
               DockPanel.Dock="Top"
               Margin="0,12,0,0"
               FontSize="12pt"
               FontFamily="{DynamicResource LCARS_ParagraphFont}"
               Foreground="{DynamicResource LCARS_ParagraphBrush}"
               Text="{s:StringResource UPDATE_STATUS_STARTING}" />
    <s:BlockBar x:Name="TotalProgress"
                DockPanel.Dock="Top"
                Margin="0,6,0,0"
                Height="24"
                BlockCount="100"
                BlockMargin="2" />
    <ListView x:Name="FileStatusList"
              DockPanel.Dock="Top"
              Height="200"
              Margin="0,12,0,0">
      <ListView.View>
        <GridView>
          <GridView.Columns>
            <GridViewColumn Header="{s:StringResource UPDATE_COLUMN_HEADER_FILE}"
                            DisplayMemberBinding="{Binding Path=File}"
                            Width="367" />
            <GridViewColumn Header="{s:StringResource UPDATE_COLUMN_HEADER_SIZE}"
                            Width="100">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock HorizontalAlignment="Right"
                             TextAlignment="Right"
                             Text="{Binding Path=Size, Mode=OneWay, StringFormat='#,0, KB'}" />
                </DataTemplate>
              </GridViewColumn.CellTemplate>

            </GridViewColumn>
            <GridViewColumn Header="{s:StringResource UPDATE_COLUMN_HEADER_PROGRESS}"
                            Width="100">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <TextBlock HorizontalAlignment="Right"
                             TextAlignment="Right"
                             Text="{Binding Path=Progress, Mode=OneWay, StringFormat='0%'}" />
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
          </GridView.Columns>
        </GridView>
      </ListView.View>
    </ListView>
    <Button x:Name="CancelButton"
            Style="{DynamicResource LCARS_StandardButtonStyle}"
            Margin="0,12,0,0"
            HorizontalAlignment="Center"
            Click="CancelButton_OnClick">
      <AccessText Text="{s:StringResource Key=MESSAGE_DIALOG_CANCEL, Case=Upper}" />
    </Button>
  </DockPanel>
</scc:Dialog>
